package com.ruoyi.sj.mapper;

import com.ruoyi.sj.domain.Nearby;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName NearbyMapper
 * @Description TODO
 * @Author tyc@yanyu
 * @Date 2018/12/13 0013 14:24
 **/
public interface NearbyMapper {
    /**
     * 新增用户经纬度
     * @param nearby 户经纬度信息
     * @return 结果
     */
    public int insertNearby(Nearby nearby);

    Nearby queryById(String openid);

    int update(Nearby nearby);

    List<Nearby> queryUserList(@Param("minLat") Double minLat, @Param("minLng") Double minLng, @Param("maxLat") Double maxLat, @Param("maxLng") Double maxLng);
}
